import $http from '@/assets/js/http'


//查询app列表
export function getAppList(name, index, size) {
    return $http.get('/manage/appManage/list', {
        params: { appName: name, pageIndex: index, pageSize: size }
    });
}

//删除app
export function postDeleteApp(delId) {
    return $http.post('/manage/appManage/delete', {
        id: delId
    });
}

//新增app
export function postAddApp(param) {
    return $http.post('/manage/appManage/add', {
        name:param.name,
        logo: param.logo,
        androidDownload:param.androidDownload,
        iosDownload:param.iosDownload,
        isShow:param.isShow,
    });
}

//编辑app
export function postEditApp(param) {
    return $http.post('/manage/appManage/edit', {
        id:param.id,
        name:param.name,
        logo: param.logo,
        androidDownload:param.androidDownload,
        iosDownload:param.iosDownload,
        isShow:param.isShow,
    });
}